-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
alertRules_API.json
766 lines (766 loc) · 26.3 KB
/
alertRules_API.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
{
"swagger": "2.0",
"info": {
"title": "MonitorManagementClient",
"x-ms-code-generation-settings": {
"name": "MonitorManagementClient"
},
"version": "2016-03-01"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}": {
"put": {
"description": "Creates or updates a classic metric alert rule.",
"tags": [
"AlertRules"
],
"operationId": "AlertRules_CreateOrUpdate",
"parameters": [
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/RuleNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/AlertRuleResource"
},
"description": "The parameters of the rule to create or update."
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"200": {
"description": "Successful request to update an alert rule",
"schema": {
"$ref": "#/definitions/AlertRuleResource"
}
},
"201": {
"description": "Created alert rule",
"schema": {
"$ref": "#/definitions/AlertRuleResource"
}
}
},
"x-ms-examples": {
"Create or update an alert rule": {
"$ref": "./examples/createOrUpdateAlertRule.json"
}
}
},
"delete": {
"description": "Deletes a classic metric alert rule",
"tags": [
"AlertRules"
],
"operationId": "AlertRules_Delete",
"parameters": [
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/RuleNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"204": {
"description": "No content: the request was successful, but the response is empty"
},
"200": {
"description": "Successful request to delete an alert rule"
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Delete an alert rule": {
"$ref": "./examples/deleteAlertRule.json"
}
}
},
"get": {
"description": "Gets a classic metric alert rule",
"tags": [
"AlertRules"
],
"operationId": "AlertRules_Get",
"parameters": [
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/RuleNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Successful request to get an alert rule",
"schema": {
"$ref": "#/definitions/AlertRuleResource"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Get an alert rule": {
"$ref": "./examples/getAlertRule.json"
}
}
},
"patch": {
"description": "Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method.",
"operationId": "AlertRules_Update",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/RuleNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"name": "alertRulesResource",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/AlertRuleResourcePatch"
},
"description": "Parameters supplied to the operation."
}
],
"responses": {
"200": {
"description": "Successful request to update an alert rule",
"schema": {
"$ref": "#/definitions/AlertRuleResource"
}
},
"201": {
"description": "Successful request to update an alert rule that resulted in a creation of the alert rule",
"schema": {
"$ref": "#/definitions/AlertRuleResource"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Patch an alert rule": {
"$ref": "./examples/patchAlertRule.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules": {
"get": {
"tags": [
"AlertRules"
],
"operationId": "AlertRules_ListByResourceGroup",
"description": "List the classic metric alert rules within a resource group.",
"parameters": [
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Successful request for a list of alert rules",
"schema": {
"$ref": "#/definitions/AlertRuleResourceCollection"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": null
},
"x-ms-examples": {
"List alert rules": {
"$ref": "./examples/listAlertRule.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Insights/alertrules": {
"get": {
"tags": [
"AlertRules"
],
"operationId": "AlertRules_ListBySubscription",
"description": "List the classic metric alert rules within a subscription.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Successful request for a list of alert rules",
"schema": {
"$ref": "#/definitions/AlertRuleResourceCollection"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": null
},
"x-ms-examples": {
"List alert rules": {
"$ref": "./examples/listAlertRuleBySubscription.json"
}
}
}
}
},
"definitions": {
"RuleCondition": {
"type": "object",
"discriminator": "odata.type",
"properties": {
"odata.type": {
"type": "string",
"description": "specifies the type of condition. This can be one of three types: ManagementEventRuleCondition (occurrences of management events), LocationThresholdRuleCondition (based on the number of failures of a web test), and ThresholdRuleCondition (based on the threshold of a metric)."
},
"dataSource": {
"$ref": "#/definitions/RuleDataSource",
"description": "the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource."
}
},
"required": [
"odata.type"
],
"description": "The condition that results in the alert rule being activated."
},
"RuleDataSource": {
"type": "object",
"discriminator": "odata.type",
"properties": {
"odata.type": {
"type": "string",
"description": "specifies the type of data source. There are two types of rule data sources: RuleMetricDataSource and RuleManagementEventDataSource"
},
"resourceUri": {
"type": "string",
"description": "the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule."
}
},
"required": [
"odata.type"
],
"description": "The resource from which the rule collects its data."
},
"RuleMetricDataSource": {
"x-ms-discriminator-value": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/RuleDataSource"
}
],
"properties": {
"metricName": {
"type": "string",
"description": "the name of the metric that defines what the rule monitors."
}
},
"description": "A rule metric data source. The discriminator value is always RuleMetricDataSource in this case."
},
"RuleManagementEventClaimsDataSource": {
"properties": {
"emailAddress": {
"type": "string",
"description": "the email address."
}
},
"description": "The claims for a rule management event data source."
},
"RuleManagementEventDataSource": {
"x-ms-discriminator-value": "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/RuleDataSource"
}
],
"properties": {
"eventName": {
"type": "string",
"description": "the event name."
},
"eventSource": {
"type": "string",
"description": "the event source."
},
"level": {
"type": "string",
"description": "the level."
},
"operationName": {
"type": "string",
"description": "The name of the operation that should be checked for. If no name is provided, any operation will match."
},
"resourceGroupName": {
"type": "string",
"description": "the resource group name."
},
"resourceProviderName": {
"type": "string",
"description": "the resource provider name."
},
"status": {
"type": "string",
"description": "The status of the operation that should be checked for. If no status is provided, any status will match."
},
"subStatus": {
"type": "string",
"description": "the substatus."
},
"claims": {
"$ref": "#/definitions/RuleManagementEventClaimsDataSource",
"description": "the claims."
}
},
"description": "A rule management event data source. The discriminator fields is always RuleManagementEventDataSource in this case."
},
"ConditionOperator": {
"type": "string",
"enum": [
"GreaterThan",
"GreaterThanOrEqual",
"LessThan",
"LessThanOrEqual"
],
"x-ms-enum": {
"name": "ConditionOperator",
"modelAsString": false
},
"description": "Operators allowed in the rule condition."
},
"TimeAggregationOperator": {
"type": "string",
"enum": [
"Average",
"Minimum",
"Maximum",
"Total",
"Last"
],
"x-ms-enum": {
"name": "TimeAggregationOperator",
"modelAsString": false
},
"description": "Aggregation operators allowed in a rule."
},
"ThresholdRuleCondition": {
"x-ms-discriminator-value": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/RuleCondition"
}
],
"required": [
"threshold",
"operator"
],
"properties": {
"operator": {
"$ref": "#/definitions/ConditionOperator",
"description": "the operator used to compare the data and the threshold."
},
"threshold": {
"type": "number",
"format": "double",
"description": "the threshold value that activates the alert."
},
"windowSize": {
"type": "string",
"format": "duration",
"description": "the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day."
},
"timeAggregation": {
"$ref": "#/definitions/TimeAggregationOperator",
"description": "the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric."
}
},
"description": "A rule condition based on a metric crossing a threshold.",
"example": "\"condition\": {\r\n\t\"odata.type\": \"Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition\",\r\n\t\"dataSource\": {\r\n\t\"odata.type\": \"Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource\",\r\n\t\"resourceUri\":\r\n\t\"/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/Default-Storage-NorthCentralUS/providers/Microsoft.Web/serverfarms/Plan\",\r\n\t\"metricName\": \"CpuPercentage\",\r\n\t\"operator\": \"GreaterThan\"\r\n\t},\r\n\t\"threshold\": 90,\r\n\t\"windowSize\": \"PT15M\",\r\n\t\"timeAggregation\": \"Average\"}"
},
"LocationThresholdRuleCondition": {
"x-ms-discriminator-value": "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/RuleCondition"
}
],
"properties": {
"windowSize": {
"type": "string",
"format": "duration",
"description": "the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day."
},
"failedLocationCount": {
"type": "integer",
"format": "int32",
"minimum": 0,
"description": "the number of locations that must fail to activate the alert."
}
},
"required": [
"failedLocationCount"
],
"description": "A rule condition based on a certain number of locations failing.",
"example": "{\r\n\t\"odata.type\": \"Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition\",\r\n\t\"dataSource\": {\r\n\t\t\"odata.type\": \"Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource\",\r\n\t\t\"resourceUri\": \"/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourcegroups/Default-Web-CentralUS/providers/microsoft.insights/webtests/homepagetest-newrelapp2\",r\n\t\t\"metricName\": \"GSMT_AvRaW\"\r\n\t},\r\n\t\"windowSize\": \"PT5M\",\r\n\t\"failedLocationCount\": 1\r\n}"
},
"ManagementEventAggregationCondition": {
"properties": {
"operator": {
"$ref": "#/definitions/ConditionOperator",
"description": "the condition operator."
},
"threshold": {
"type": "number",
"format": "double",
"description": "The threshold value that activates the alert."
},
"windowSize": {
"type": "string",
"format": "duration",
"description": "the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day."
}
},
"description": "How the data that is collected should be combined over time."
},
"ManagementEventRuleCondition": {
"x-ms-discriminator-value": "Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/RuleCondition"
}
],
"properties": {
"aggregation": {
"$ref": "#/definitions/ManagementEventAggregationCondition",
"description": "How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate."
}
},
"description": "A management event rule condition.",
"example": "{\r\n\t\"odata.type\": \"Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition\",\r\n\t\"dataSource\": {\r\n\t\t\"odata.type\": \"Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource\",\r\n\t\t\"operationName\": \"\",\r\n\t\t\"resourceUri\": \"/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/Default-Web-CentralUS/providers/Microsoft.Web/sites/TestLatestWebsite\",\r\n\t\t\"status\": \"failed\",\r\n\t\t\"claims\": { }\r\n\t},\r\n\t\"aggregation\": {\r\n\t\t\"threshold\": 1,\r\n\t\t\"windowSize\": \"PT5M\"\r\n\t}\r\n}"
},
"RuleAction": {
"type": "object",
"discriminator": "odata.type",
"properties": {
"odata.type": {
"type": "string",
"description": "specifies the type of the action. There are two types of actions: RuleEmailAction and RuleWebhookAction."
}
},
"required": [
"odata.type"
],
"description": "The action that is performed when the alert rule becomes active, and when an alert condition is resolved."
},
"RuleEmailAction": {
"x-ms-discriminator-value": "Microsoft.Azure.Management.Insights.Models.RuleEmailAction",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/RuleAction"
}
],
"properties": {
"sendToServiceOwners": {
"type": "boolean",
"description": "Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated."
},
"customEmails": {
"type": "array",
"items": {
"type": "string"
},
"description": "the list of administrator's custom email addresses to notify of the activation of the alert."
}
},
"description": "Specifies the action to send email when the rule condition is evaluated. The discriminator is always RuleEmailAction in this case.",
"example": "{\r\n\t\"odata.type\": \"Microsoft.Azure.Management.Insights.Models.RuleEmailAction\",\r\n\t\"sendToServiceOwners\": true,\r\n\t\"customEmails\": [\"email1@contoso.com\",\"email2@contoso.com\" ]\r\n}"
},
"RuleWebhookAction": {
"x-ms-discriminator-value": "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/RuleAction"
}
],
"properties": {
"serviceUri": {
"type": "string",
"description": "the service uri to Post the notification when the alert activates or resolves."
},
"properties": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload."
}
},
"description": "Specifies the action to post to service when the rule condition is evaluated. The discriminator is always RuleWebhookAction in this case.",
"example": "{\r\n\t\"odata.type\": \"Microsoft.Azure.Management.Insights.Models.RuleWebhookAction\",\r\n\t\"serviceUri\": \"http://contoso.com/\",\r\n\t\"properties\": { }\r\n}"
},
"AlertRule": {
"required": [
"name",
"isEnabled",
"condition"
],
"properties": {
"name": {
"type": "string",
"description": "the name of the alert rule."
},
"description": {
"type": "string",
"description": "the description of the alert rule that will be included in the alert email."
},
"isEnabled": {
"type": "boolean",
"description": "the flag that indicates whether the alert rule is enabled."
},
"condition": {
"$ref": "#/definitions/RuleCondition",
"description": "the condition that results in the alert rule being activated."
},
"actions": {
"type": "array",
"items": {
"$ref": "#/definitions/RuleAction"
},
"description": "the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved."
},
"lastUpdatedTime": {
"readOnly": true,
"type": "string",
"format": "date-time",
"description": "Last time the rule was updated in ISO8601 format."
}
},
"description": "An alert rule."
},
"Resource": {
"properties": {
"id": {
"type": "string",
"readOnly": true,
"description": "Azure resource Id"
},
"name": {
"type": "string",
"readOnly": true,
"description": "Azure resource name"
},
"type": {
"type": "string",
"readOnly": true,
"description": "Azure resource type"
},
"location": {
"type": "string",
"description": "Resource location",
"x-ms-mutability": [
"create",
"read"
]
},
"tags": {
"additionalProperties": {
"type": "string"
},
"description": "Resource tags"
}
},
"required": [
"location"
],
"x-ms-azure-resource": true,
"description": "An azure resource object"
},
"AlertRuleResource": {
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"required": [
"properties"
],
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/AlertRule",
"description": "The alert rule properties of the resource."
}
},
"description": "The alert rule resource."
},
"AlertRuleResourcePatch": {
"description": "The alert rule object for patch operations.",
"properties": {
"tags": {
"additionalProperties": {
"type": "string"
},
"description": "Resource tags"
},
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/AlertRule",
"description": "The properties of an alert rule."
}
}
},
"AlertRuleResourceCollection": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/AlertRuleResource"
},
"description": "the values for the alert rule resources."
}
},
"description": "Represents a collection of alert rule resources."
},
"ErrorResponse": {
"description": "Describes the format of Error response.",
"type": "object",
"properties": {
"code": {
"description": "Error code",
"type": "string"
},
"message": {
"description": "Error message indicating why the operation failed.",
"type": "string"
}
}
}
},
"parameters": {
"ResourceGroupNameParameter": {
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group.",
"x-ms-parameter-location": "method"
},
"RuleNameParameter": {
"name": "ruleName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the rule.",
"x-ms-parameter-location": "method"
}
}
}